package oo.Day04.nigthText;

public class Teacher extends person{
    double salary;

    Teacher(String name,int age,String address,double salary){
        super(name,age,address);
        this.salary = salary;
    }

    void sayHi(){
        System.out.println("我的名字是："+name+",今年："+age+"岁了，"
                +"我来自"+address+"我的工资是："+salary);

    }
}
